<a class="btn btn-success">会议室修改</a>
<a href="__URL__" class="btn btn-danger">返回会议室列表</a>
<div class="the-box full no-border">
	<div class="table-responsive">
		<div class="the-box">
			<form id="ExampleBootstrapValidationForm" method="post" action="__URL__/saveAct" class="form-horizontal" enctype="multipart/form-data">
				<fieldset>
					<div class="form-group">
						<label class="col-lg-3 control-label">会议是名称 <span style="color:red">*</span></label>
						<div class="col-lg-5">
							<input type="hidden" name="room_id" value="{$room.room_id}" />
							<input type="text" class="form-control must" id="name" type="text" name="room_name" value="{$room.room_name}" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-3 control-label">所在城市 <span style="color:red">*</span></label>
						<div class="col-lg-5">
							<select class="form-control" tabindex="2" name="local_id" id="{$room.local_id}">
								<foreach name="city" item="value">
									<option class="option" value="{$value.local_id}">{$value.local_name}</option>
								</foreach>														
							</select>							
						</div>
					</div>	
					<div class="form-group">
						<label class="col-lg-3 control-label">楼名 <span style="color:red">*</span></label>
							<div class="col-lg-5">											
								<select class="form-control" tabindex="2" name="building_id" id="{$room.building_id}" >
									<foreach name="build" item="value">
										<option class="option" value="{$value.building_id}">{$value.building_name}</option>
									</foreach>														
								</select>								
							</div>
					</div>
					<div class="form-group">
						<label class="col-lg-3 control-label">会议室楼层 <span style="color:red">*</span></label>
							<div class="col-lg-5">
								<select class="form-control" tabindex="2" name="floor_id" id="{$room.floor_id}">
									<foreach name="floor" item="value">
										<option class="option" value="{$value.floor_id}">{$value.floor_name}</option>
									</foreach>														
								</select>								
							</div>
					</div>	
					<div class="form-group">
						<label class="col-lg-3 control-label">座位数 <span style="color:red">*</span></label>
						<div class="col-lg-5">										
							<input  class="form-control must" id="seats" type="text" name="room_allSeats" value="{$room.room_allSeats}" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-3 control-label">Wifi</label>
							<div class="col-lg-5">										
								<input  class="form-control roomcheck" id="{$room.room_haveWifi}" type="checkbox" name="room_haveWifi" value="1" />
							</div>
					</div>
					<div class="form-group">											
						<label class="col-lg-3 control-label">投影</label>
						<div class="col-lg-5">										
							<input  class="form-control roomcheck" id="{$room.room_haveProjector}" type="checkbox" name="room_haveProjector" value="1" />
						</div>
					</div>
											
					<div class="form-group">
						<label class="col-lg-3 control-label">会议室描述</label>
						<div class="col-lg-5">										
							<textarea  class="form-control" id="description" name="room_description"></textarea>
						</div>
					</div>
																			
				</fieldset>					
											
				<div class="form-group">
					<div class="col-lg-9 col-lg-offset-3">									
						<input class="btn btn-primary" id="submit"  type="submit" value="提交" />
					</div>
				</div>
			</form>
		</div>		
	</div><!-- /.table-responsive -->
</div>
<script type="text/javascript">
	var option  = document.getElementsByClassName("option");
	for(var i=0;i<option.length;i++){
		if(option[i].value==option[i].parentNode.getAttribute("id")){
			option[i].setAttribute("selected","selected");
		}
	}
	var roomcheck = document.getElementsByClassName("roomcheck");
	for(var j=0;j<roomcheck.length;j++){			
		if(roomcheck[j].getAttribute('id')==1){				
			roomcheck[j].setAttribute("checked","true");
		}
	}
</script>
<script src="__PUBLIC__/Js/add_room.js"></script>

